/*
 * @Author       :
 * @Date         : 2022-01-27 21:19:14
 * @LastEditors  : Please set LastEditors
 * @LastEditTime : 2022-02-16 23:11:10
 * @Description  : 登录
 */
import request from '@/utils/request'

/**
 *
 * @param {*} 登录
 * @returns
 */
export const login = data => {
  return request({
    url: '/sys/login',
    method: 'POST',
    data
  })
}

/**
 * 获取用户信息
 */
export const getUserInfo = () => {
  return request({
    url: '/sys/profile'
  })
}
